package com.situ.shoplook.common.mapper;

import com.situ.shoplook.common.model.GoodsInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 86198
* @description 针对表【goods_info】的数据库操作Mapper
* @createDate 2024-08-30 09:19:10
* @Entity com.situ.shoplook.common.model.GoodsInfo
*/
public interface GoodsInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(GoodsInfo record);

    int insertSelective(GoodsInfo record);

    GoodsInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GoodsInfo record);

    int updateByPrimaryKey(GoodsInfo record);

    List<GoodsInfo> findAll();

    List<GoodsInfo> search(GoodsInfo goodsInfo);

    int deleteByIds(@Param("ids") Integer[] ids);

    List<GoodsInfo> findByCategoryId(Integer id);

    List<GoodsInfo> findByHotGoodses();

    List<GoodsInfo> selectByPrimaryKeys(List<Long> goodsIds);
}
